package com.easylinkin.sm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.sm.entity.DictItem;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 数据字典Mapper
 *
 * @author wujie
 * @since 0.1.1,  2019/08/23
 */
@Mapper
public interface DictItemMapper extends BaseMapper<DictItem> {

  List<DictItem> getDictItemPage(@Param("queryParams") DictItem queryParams,
      @Param("language") String language, @Param("module") String module,
      Page page);

  List<DictItem> findDicItemList(@Param("code")String code,@Param("module") String module,@Param("language") String language);

  List<DictItem> findParentDicItemList(@Param("id")Long id,@Param("module") String module,@Param("language") String language);
}
